Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add extra link check to release.md #613

Closed

Conversation

lmolkova
Copy link
Contributor

See open-telemetry/semantic-conventions#1009 and #611 (comment) for the context.

TL;DR: markdown-link-check does not check cross-file anchor links.
Today broken links are discovered only when a new proto release is published on otel.io, where these links needs to be manually overridden and fixed.

The general tooling for this is tracked in open-telemetry/semantic-conventions#1009, in the meantime, we should leverage otel.io workflow that can run against proto main branch and detect broken anchors.

It finds a few broken anchors in almost every semconv and spec release, so 1) it's useful 2) it adds just a few minutes to the release process and not too bad.

This PR adds this as a manual step until we have a full automation.

@lmolkova lmolkova requested a review from a team as a code owner December 17, 2024 18:01
@lmolkova lmolkova requested a review from Copilot December 17, 2024 18:01

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

RELEASING.md Outdated
@@ -2,6 +2,9 @@

_Instruction for Maintainers only._

- Run [opentelemetry.io workflow](https://github.com/open-telemetry/opentelemetry.io/actions/workflows/build-dev.yml)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do you run this against a submodule? Can you please provide more details. I don't know how to do this.

Copy link
Contributor Author

@lmolkova lmolkova Dec 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. open that link
  2. type opentelemetry-proto into the submodule field
    image
  3. Run it
  4. wait for it to complete
  5. Both BUILD and CHECK LINKS and WARNINGS in build log? should pass.
  6. If any of them fails, check BUILD and CHECK LINKS/Run npm run log:test-and-fix logs - broken links should be there
  7. Ignore REFCACHE updates? status.

Did I capture it right @chalin ?

run with broken links

image

run without issues:

image

I don't think we normally go into this level of details in release doc so I don't think we should update it, it's easy to figure out the moment you try it.

Copy link
Contributor

@chalin chalin Dec 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that's about it. 👍🏻

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks! Would it be possible to add the distilled version of this to RELEASING.md?

RELEASING.md Outdated Show resolved Hide resolved
RELEASING.md Outdated
@@ -2,6 +2,9 @@

_Instruction for Maintainers only._

- Run [opentelemetry.io workflow](https://github.com/open-telemetry/opentelemetry.io/actions/workflows/build-dev.yml)
Copy link
Contributor

@chalin chalin Dec 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that's about it. 👍🏻

Co-authored-by: Patrice Chalin <[email protected]>
@lmolkova
Copy link
Contributor Author

I'm going to close it in favor of #614

@lmolkova lmolkova closed this Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants